//
//  Kratos_HttpClient.h
//  kk_framework
//
//  Created by 7yao.top on 2018/11/7.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Kratos_HttpConstant.h"
#import "Kratos_HttpResponse.h"

@protocol  Kratos_HttpResponseHandle;

@interface Kratos_HttpClient : NSObject

- (instancetype)initWithHandle:(id<Kratos_HttpResponseHandle>) responseHandle;
///自动添加gameid=【游戏id】&cid=【渠道id】&chid=【广告位id】&idfa=【IDFA】&sdkver=1.3&pkg=【包名】&version=【版本】&exmodel=【手机型号】&inm=1 参数
- (NSString *)Kratos_post:(NSString *)URLString Kratos_parameters:(id)parameters Kratos_onSuccess:( Kratos_HttpResponseBlock )responseresult Kratos_onFail:(Kratos_HttpResponseBlock )fail;
//////自动添加gameid=【游戏id】&cid=【渠道id】&chid=【广告位id】&idfa=【IDFA】&sdkver=1.3&pkg=【包名】&version=【版本】&exmodel=【手机型号】&inm=1 参数
- (NSString *)Kratos_get:(NSString *)URLString Kratos_parameters:(id)parameters Kratos_onSuccess:( Kratos_HttpResponseBlock )responseresult Kratos_onFail:(Kratos_HttpResponseBlock )fail;

///不自动添加参数
- (NSString *)Kratos_noGeneralpost:(NSString *)URLString Kratos_parameters:(id)parameters onSuccess:( Kratos_HttpResponseBlock )responseresult onFail:(Kratos_HttpResponseBlock )fail;

///不自动添加参数
- (NSString *)Kratos_noGeneralget:(NSString *)URLString Kratos_parameters:(id)parameters onSuccess:( Kratos_HttpResponseBlock )responseresult onFail:(Kratos_HttpResponseBlock )fail;


@end
